<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="father">
    <h1>zjj</h1>
    <p class="mm">jj</p>
    <dl id="se">zjj</dl>

</div>
<script>
    //获得节点
    let et = document.getElementsByTagName("h1");
    let ec = document.getElementsByClassName("mm");
    let ei = document.getElementById("se");
    let never = document.getElementById("father")
    let children = never.children;
    //删除节点
    var father = ei.parentElement;
    let po = document.createElement("p");
    po.setAttribute('style','color:red');
    po.innerText='zjjnb';
    father.appendChild(po);
//    father.removeChild(ei)
    let sc = document.createElement("script");
    sc.setAttribute("id","dirtylila");
    father.appendChild(sc);

</script>
</body>
</html>